Skip to content

KBE3D / KBCore / Cesium / Intersections2D

Intersections2D

Contains functions for operating on 2D triangles.

函数

函数描述
clipTriangleAtAxisAlignedThresholdSplits a 2D triangle at given axis-aligned threshold value and returns the resulting polygon on a given side of the threshold. The resulting polygon may have 0, 1, 2, 3, or 4 vertices.
computeBarycentricCoordinatesCompute the barycentric coordinates of a 2D position within a 2D triangle.
computeLineSegmentLineSegmentIntersectionCompute the intersection between 2 line segments

KBE3D @3.0.0 Copyright © 2024-present KBE3D